package com.lifeng.system.service.impl;

import com.lifeng.model.system.SysOperLog;
import com.lifeng.system.mapper.OperLogMapper;
import com.lifeng.system.service.MyOperLogService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author lifeng
 * @create 2022-11-26 10:47
 */
@Service
public class MyOperLogServiceImpl implements MyOperLogService {

    @Autowired
    private OperLogMapper operLogMapper;

    @Override
    public IPage<SysOperLog> operLogPageInfo(Long page, Long limit) {
        Page<SysOperLog> pageInfo = new Page<SysOperLog>(page,limit);
        IPage<SysOperLog> selectPage = operLogMapper.selectPage(pageInfo, null);
        return selectPage;
    }

}
